package com.cxhc.system.domain.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cxhc.common.annotation.Excel;

/**
 * 评论对象 cm_comment
 * 
 * @author Dhq
 * @String 2024-09-24
 */
public class CmComment
{

    /** $column.columnComment */
    private Long id;

    /** 评论的用户ID */
    @Excel(name = "评论的用户ID")
    private Long userId;

    /** 评论用户姓名 */
    @Excel(name = "评论用户姓名")
    private String userRealName;

    /** 评论用户的头像 */
    @Excel(name = "评论用户的头像")
    private String userPhoto;

    /** 评论的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss ")
    @Excel(name = "评论的时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss ")
    private String addTime;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String context;

    /** 类型（一般为表名，如 cm_info 是对公告信息进行评论） */
    @Excel(name = "类型", readConverterExp = "一=般为表名，如,c=m_info,是=对公告信息进行评论")
    private String type;

    /** 目标ID */
    @Excel(name = "目标ID")
    private String targetId;

    /** 赞的数量 */
    @Excel(name = "赞的数量")
    private Long likeTotal;

    /** 回复ID */
    @Excel(name = "回复ID")
    private Long replyId;

    /** 回复的内容（限定20个字） */
    @Excel(name = "回复的内容", readConverterExp = "限=定20个字")
    private String replyTitle;

    /** 当前回复数量 */
    @Excel(name = "当前回复数量")
    private Long curReplyTotal;

    /** 最后回复评论的用户ID */
    @Excel(name = "最后回复评论的用户ID")
    private Long lastReplyUserId;

    /** 最后回复用户姓名 */
    @Excel(name = "最后回复用户姓名")
    private String lastReplyUserRealName;

    /** 最后回复用户头像 */
    @Excel(name = "最后回复用户头像")
    private String lastReplyUserPhoto;

    /** 评论照片URL */
    @Excel(name = "评论照片URL")
    private String photo;

    /** 最后点赞时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss ")
    @Excel(name = "最后点赞时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss ")
    private String likeLastTime;

    /** 星级 */
    @Excel(name = "星级")
    private Long star;

    /** 用户角色ID */
    @Excel(name = "用户角色ID")
    private Long userRoleId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserRealName(String userRealName) 
    {
        this.userRealName = userRealName;
    }

    public String getUserRealName() 
    {
        return userRealName;
    }
    public void setUserPhoto(String userPhoto) 
    {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto() 
    {
        return userPhoto;
    }
    public void setAddTime(String addTime) 
    {
        this.addTime = addTime;
    }

    public String getAddTime() 
    {
        return addTime;
    }
    public void setContext(String context) 
    {
        this.context = context;
    }

    public String getContext() 
    {
        return context;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTargetId(String targetId) 
    {
        this.targetId = targetId;
    }

    public String getTargetId() 
    {
        return targetId;
    }
    public void setLikeTotal(Long likeTotal) 
    {
        this.likeTotal = likeTotal;
    }

    public Long getLikeTotal() 
    {
        return likeTotal;
    }
    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }
    public void setReplyTitle(String replyTitle) 
    {
        this.replyTitle = replyTitle;
    }

    public String getReplyTitle() 
    {
        return replyTitle;
    }
    public void setCurReplyTotal(Long curReplyTotal) 
    {
        this.curReplyTotal = curReplyTotal;
    }

    public Long getCurReplyTotal() 
    {
        return curReplyTotal;
    }
    public void setLastReplyUserId(Long lastReplyUserId) 
    {
        this.lastReplyUserId = lastReplyUserId;
    }

    public Long getLastReplyUserId() 
    {
        return lastReplyUserId;
    }
    public void setLastReplyUserRealName(String lastReplyUserRealName) 
    {
        this.lastReplyUserRealName = lastReplyUserRealName;
    }

    public String getLastReplyUserRealName() 
    {
        return lastReplyUserRealName;
    }
    public void setLastReplyUserPhoto(String lastReplyUserPhoto) 
    {
        this.lastReplyUserPhoto = lastReplyUserPhoto;
    }

    public String getLastReplyUserPhoto() 
    {
        return lastReplyUserPhoto;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setLikeLastTime(String likeLastTime) 
    {
        this.likeLastTime = likeLastTime;
    }

    public String getLikeLastTime() 
    {
        return likeLastTime;
    }
    public void setStar(Long star) 
    {
        this.star = star;
    }

    public Long getStar() 
    {
        return star;
    }
    public void setUserRoleId(Long userRoleId) 
    {
        this.userRoleId = userRoleId;
    }

    public Long getUserRoleId() 
    {
        return userRoleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userRealName", getUserRealName())
            .append("userPhoto", getUserPhoto())
            .append("addTime", getAddTime())
            .append("context", getContext())
            .append("type", getType())
            .append("targetId", getTargetId())
            .append("likeTotal", getLikeTotal())
            .append("replyId", getReplyId())
            .append("replyTitle", getReplyTitle())
            .append("curReplyTotal", getCurReplyTotal())
            .append("lastReplyUserId", getLastReplyUserId())
            .append("lastReplyUserRealName", getLastReplyUserRealName())
            .append("lastReplyUserPhoto", getLastReplyUserPhoto())
            .append("photo", getPhoto())
            .append("likeLastTime", getLikeLastTime())
            .append("star", getStar())
            .append("userRoleId", getUserRoleId())
            .toString();
    }
}
